package org.dromara.system.domain.bo;

import org.dromara.system.domain.PayGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 轮询组业务对象 pay_group
 *
 * @author Gavino
 * @date 2024-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayGroup.class, reverseConvertGenerate = false)
public class PayGroupBo extends BaseEntity {

    /**
     * 轮询组ID
     */
    @NotNull(message = "轮询组ID不能为空", groups = { EditGroup.class })
    private Long groupId;

    /**
     * 轮询组名称
     */
    @NotBlank(message = "轮询组名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String groupName;


}
